<?php

/**
 * TOP API: taobao.marketing.promotions.get request
 *
 * @author auto create
 * @since  1.0, 2013-09-13 16:51:03
 */
class Taobao_Request_MarketingPromotionsGetRequest {
	/**
	 * 需返回的优惠策略结构字段列表。可选值为Promotion中所有字段，如：promotion_id, promotion_title, item_id, status, tag_id等等
	 **/
	private $fields;

	/**
	 * 是否新标签标识
	 **/
	private $isNewTag;

	/**
	 * 商品数字ID。根据该ID查询商品下通过第三方工具设置的所有优惠策略
	 **/
	private $numIid;

	/**
	 * 优惠策略状态。可选值：ACTIVE(有效)，UNACTIVE(无效)，若不传或者传入其他值，则默认查询全部
	 **/
	private $status;

	/**
	 * 标签ID
	 **/
	private $tagId;

	private $apiParas = array();

	public function setFields($fields) {
		$this->fields = $fields;
		$this->apiParas["fields"] = $fields;
	}

	public function getFields() {
		return $this->fields;
	}

	public function setIsNewTag($isNewTag) {
		$this->isNewTag = $isNewTag;
		$this->apiParas["is_new_tag"] = $isNewTag;
	}

	public function getIsNewTag() {
		return $this->isNewTag;
	}

	public function setNumIid($numIid) {
		$this->numIid = $numIid;
		$this->apiParas["num_iid"] = $numIid;
	}

	public function getNumIid() {
		return $this->numIid;
	}

	public function setStatus($status) {
		$this->status = $status;
		$this->apiParas["status"] = $status;
	}

	public function getStatus() {
		return $this->status;
	}

	public function setTagId($tagId) {
		$this->tagId = $tagId;
		$this->apiParas["tag_id"] = $tagId;
	}

	public function getTagId() {
		return $this->tagId;
	}

	public function getApiMethodName() {
		return "taobao.marketing.promotions.get";
	}

	public function getApiParas() {
		return $this->apiParas;
	}

	public function check() {

		Taobao_RequestCheckUtil::checkNotNull($this->fields, "fields");
		Taobao_RequestCheckUtil::checkNotNull($this->numIid, "numIid");
	}

	public function putOtherTextParam($key, $value) {
		$this->apiParas[$key] = $value;
		$this->$key = $value;
	}
}
